import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import user from './modules/user'
import getters from './getters'

import busBox from "./modules/forendModule/bus"
Vue.use(Vuex)



const store = new Vuex.Store({

/*  模块的概念。不再使用单一state的状态树*/
  modules: {
    app,
    user,
    busBox,
  },
  getters
})

export default store
